package com.example.demo02.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 本地化项目错误类枚举
 */
@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {

    SYSTEM_ERROR(0, "系统错误"),

    SYSTEM_DATA_ERROR(3, "数据异常"),

    SYSTEM_REQUEST_PARAM_ERROR(5, "请求参数错误"),

    SYSTEM_BUSINESS_ERROR(6, "系统繁忙,请您稍后再试"),

    CAPTCHA_IS_NULL(7, "验证码不存在"),

    CAPTCHA_EXPIRED(8, "验证码已过期, 请重新生成"),

    CAPTCHA_ERROR(9, "验证码输入有误"),

    USER_NOT_FIND(10, "用户不存在"),

    USER_LOGIN_ERROR(11, "用户名或密码错误"),

    PARKING_LOT_NOT_EXIST(12, "停车场不存在"),

    GATE_NOT_EXIST(13, "车道不存在"),

    BUSINESS_NOT_EXIST(14, "业务信息不存在"),

    CURRENTLY_NOT_SUPPORTED_FOR_THIS_BUSINESS(15, "暂不支持当前业务"),

    BUSINESS_HAS_LEFT(16, "业务已离场"),

    TRAFFIC_RECORDS_NOT_EXIST(17, "通行记录不存在"),

    DISCOUNT_RULE_NOT_EXIST(18, "优惠项信息不存在"),

    REGION_NOT_EXIST(19, "区域信息不存在"),

    DICTIONARY_NOT_EXIST(20, "数据字典不存在"),

    CONTAINERS_NOT_INITIALIZED(21, "容器未初始化"),

    BOOTH_NOT_EXIST(22, "岗亭信息不存在"),

    //上下岗相关
    OTHERS_ON_DUTY(23,"已有他人上岗"),

    BUSSINESS2_RETURN_ERROR(24,"bussiness2请求返回异常"),

    CREATE_BATCHNO_ERROR(25,"上岗批次号生成异常"),

    OPERATORBATCHNO_IS_EMPTY(26,"下岗传入批次号为空"),

    BATCH_RECORD_NOT_FOUND(27,"未查询到批次记录"),

    NON_REPEATABLE_SIGN_OUT(28,"不可重复签退")

    ;

    private final int code;

    private final String label;

}
